package com.device.grant.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.device.grant.dao.ApparatusConfigDao;
import com.device.grant.pojo.ApparatusConfig;
import com.device.grant.service.ApparatusConfigService;

@Service("apparatusConfigService")
public class ApparatusConfigServiceImpl implements ApparatusConfigService {

	@Autowired
	private ApparatusConfigDao	apparatusConfigDao;

	public List<ApparatusConfig> getApparatusConfigs(Map<String, Object> conditions) {
		return apparatusConfigDao.getApparatusConfigs(conditions);
	}

	public boolean deleteApparatusConfigs(Map<String, Object> conditions) {
		return apparatusConfigDao.deleteApparatusConfigs(conditions);
	}

	public boolean insertApparatusConfigs(ApparatusConfig config) {
		return apparatusConfigDao.insertApparatusConfigs(config);
	}

	public boolean updateApparatusConfig(Map<String, Object> changeInfos, Map<String, Object> conditions) {
		return apparatusConfigDao.updateApparatusConfig(changeInfos, conditions);
	}

}
